package org.baizhiedu.proxy;

import org.baizhiedu.proxy.a.UserService;
import org.baizhiedu.proxy.a.UserServiceImpl;

/**
 * ClassName: UserServiceProxy
 * Description:
 * Date: 2022/11/21 AM 11:50:24
 * <p>
 * project: spring5
 * package: org.baizhiedu.proxy
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class UserServiceProxy implements UserService {

    private final UserServiceImpl userServiceImpl = new UserServiceImpl();

    @Override
    public void register(User user) {
        System.out.println("---log---");
        userServiceImpl.register(user);
    }

    @Override
    public boolean login(String name, String password) {
        System.out.println("---log---");
        return userServiceImpl.login(name, password);
    }
}
